<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="shortcut icon" href="/cwp/favicon.ico" type="image/x-icon">
    <title>首航节能-智慧园区</title>
    <!--引入CSS文件-->
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/style.css">
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/list.css">
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/table.css">
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/paging.css">
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/tabs.css">
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/btn.css">
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/taqs.css">
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/form.css">
    <link rel="stylesheet" type="text/css" href="../../../assets/lib/bootstrap-3.3.5-dist/css/bootstrapModel.css">
    <!--日历控件样式-->
    <link rel="stylesheet" type="text/css" href="../../../assets/lib/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.min.css" />
    <!--下拉多选样式-->
    <link rel="stylesheet" type="text/css" href="../../../assets/lib/select/bootstrap-select.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/operationalManagement/consumption.css">
</head>

<body>

<!--头部文件 开始-->
<div id="header"></div>
<!--头部文件 结束-->

<div class="wrapper">
    <!--左侧菜单 开始-->
    <div id="left-menu"></div>
    <!--左侧菜单 结束-->

    <!--右侧内容 开始-->
    <div class="right-container">
        <div class="right-scroll">
            <div class="t-list">
                <div class="t-list-title">
                    <h2>运营管理 > 员工消费报表</h2>
                </div>

                <div class="t-list-search t-columns-3">
                   <form id="frmSearch">
                        <ul class="t-columns-group" style="display: none;">
                            <li class="width-all">
                                <span class="">
                                    *如果查询计划为空，请先 <a class="jf-link" href="/cwp/src/static/operationalManagement/consumption/queryPlan.html?menuId=2.4.3">添加查询计划</a>，当查询计划数据同步完成后，方可在本系统中查询报表数据
                                </span>
                            </li>
                        </ul>
                        <ul class="t-columns-group">

                            <li class="timegroup">
                                <label>起止日期</label>
                                <div>
                                    <div>
                                        <input class="form_date_start bg-date" value="" placeholder="开始时间" readonly="" id="startDate" name="startDate"/>
                                    </div>
                                    <span>~</span>
                                    <div>
                                        <input class="form_date_end bg-date" value="" placeholder="结束时间" readonly="" id="endDate" name="endDate"/>
                                    </div>
                                </div>
                            </li>
                            <li>
                                <label>选择部门类型</label>
                                <div>
                                    <select id="chinaMobile" name="chinaMobile" class="selectpicker show-tick form-control" title="--请选择--">
                                        <option value="0" selected>内部</option>
                                        <option value="1">外部</option>
                                    </select>
                                </div>
                            </li>
                            <input type="hidden" id="hidCompanyId" name="companyId" value=""/>
                            <li id="companyLi" style="display:none;">
                                <label>选择公司</label>
                                <div>
                                    <select id="companyList" class="selectpicker show-tick form-control" title="--请选择--"  multiple data-live-search="false" data-actions-box="true">
                                    </select>
                                </div>
                            </li>

                            <li id="deptLi" style="display: block;">
                                <label>选择部门</label>
                                <div>
                                    <select id="deptList" class="selectpicker show-tick form-control" title="--请选择--"   multiple data-live-search="false"  data-actions-box="true" deselectAllText="取消">
                                    </select>

                                </div>
                            </li>
                            <li>
                                <label>选择合同类型</label>
                                <div>
                                    <select id="contractType" class="selectpicker show-tick form-control" title="--请选择--"  multiple data-live-search="false">
                                    </select>
                                    <input type="hidden" id="hidContractType" name="contractType"/>
                                </div>
                            </li>
                            <li>
                                <label>选择餐厅</label>
                                <div>
                                    <select id="canteen" class="selectpicker show-tick form-control" title="--请选择--"  multiple data-live-search="false">
                                        <option value="中膳">中膳</option>
                                        <option value="和兴隆">和兴隆</option>
                                        <option value="班车">班车</option>
                                        <option value="消费机">消费机</option>
                                        <option value="员工之家">员工之家</option>
                                    </select>
                                    <input type="hidden" id="hidGroupName" name="groupName"/>
                                </div>
                            </li>
                            <li>
                                <label></label>
                                <div>
                                    <a class="t-btn" id="btnSearchFaultConsume">
                                        <i class="icon-search"></i> 查询
                                    </a>
                                </div>
                            </li>
                        </ul>
                    </form>
                </div>

                <div class="t-list-btns">
                    <p>请求记录</p>
                    <span id="consumptionListTotal"></span>
                    <div><p>合计消费额：<span id="moneyTotal">00.00</span>元</p></div>
                    <div><p>充值消费额：<span id="money">00.00</span>元</p></div>
                    <div><p>福利消费额：<span id="subsidy">00.00</span>元</p></div>
                </div>

                <div class="t-list-result">
                    <!-- 表格 -->
                    <table class="t-table" id="consumptionList">
                        <thead>
                            <tr>
                                <th>公司/部门名称</th>
                                <th>合同类型</th>
                                <th>餐厅</th>
                                <th>福利费消费额</th>
                                <th>充值消费额</th>
                                <th>合计消费额</th>
                            </tr>
                        </thead>
                        <tbody></tbody>
                    </table>
                    <div class="loading-container"></div>
                    <!-- 分页 -->
                    <div class="pagination" id="consumptionListPagination"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--版权-->
<div id="copyright"></div>
<!--提示模态框-->
<div class="modal fade bs-example-modal-sm" id="myTip" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-body" style="text-align:center;font-size:14px;">
                <i id="icon-tip" style="margin-right:6px;"></i>
                <span class="tip-info"></span>
            </div>
        </div>
    </div>
</div>

<!--jQuery库脚本-->
<!--非IE8浏览器-->
<!--[if !(IE 8)]><!-->
<script type="text/javascript" src="../../../assets/lib/jquery/jquery.min.js"></script>
<!--<![endif]-->
<!--IE8浏览器-->
<!--[if IE 8]>
<script type="text/javascript" src="../../../assets/lib/jquery/jquery-ie8.min.js"></script><![endif]-->
<script type="text/javascript" src="../../../assets/lib/jQuery-slimScroll-1.3.8/jquery.slimscroll.min.js"></script>
<script src="../../../assets/common/loadHeaderAndCopyright.js"></script>
<script src="../../../assets/lib/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
<!--分页脚本-->
<script charset="utf-8" src="../../../assets/lib/pagination/1.2.1/jquery.pagination.js"></script>
<script src="../../../assets/common/ajaxPoster.js"></script>
<script type="text/javascript" charset="utf-8" src="../../../assets/lib/tipModal/js/tipModal.js"></script>
<script src="../../../assets/common/centerModal.js"></script>
<!--bootsrtap日历控件脚本-->
<script src="../../../assets/lib/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js"></script>
<script src="../../../assets/lib/bootstrap-datetimepicker-master/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="../../../assets/lib/bootstrap-datetimepicker-master/js/initDatetimepicker.js"></script>
<script src="../../../assets/lib/select/bootstrap-select.min.js" charset="utf-8"></script>
<script charset="utf-8" src="../../../assets/lib/artTemplate/template.js"></script>
<script src="../../../assets/common/loaderTableTmpl.js"></script>
<script src="../../../js/operationalManagement/consumption/consumption.js"></script>

<script type="text/html" id="dataTmpl">
    {{each beans}}
    <tr>
        <td>{{$value.deptName}}</td>
        <td>{{$value.contractType}}</td>
        <td>{{$value.groupName}}</td>
        <td>{{$value.subsidy | subsidyAbs}}</td>
        <td>{{$value.money | moneyAbs}}</td>
        <td>{{$value.moneyTotal | moneyTotalAbs}}</td>
    </tr>
    {{/each}}
</script>
<script type="text/html" id="timelistTmpl">
    {{each beans}}
        <option value="{{$value.consumStatisticsId}}">{{$value.startTime | startTimeFormat}}至{{$value.endTime | endTimeFormat}}</option>
    {{/each}}
</script>
</body>

</html>